<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieves APCu Shared Memory Allocation information</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.apcu-key-info.html">« apcu_key_info</a></li>
      <li style="float: right;"><a href="function.apcu-store.html">apcu_store »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.apcu.html">APCu 函数</a></li>
    <li>Retrieves APCu Shared Memory Allocation information</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.apcu-sma-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apcu_sma_info</h1>
  <p class="verinfo">(PECL apcu &gt;= 4.0.0)</p><p class="refpurpose"><span class="refname">apcu_sma_info</span> &mdash; <span class="dc-title">
   Retrieves APCu Shared Memory Allocation information
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.apcu-sma-info-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apcu_sma_info</strong></span>(<span class="methodparam"><span class="type">bool</span> <code class="parameter">$limited</code><span class="initializer"> = <strong><code>false</code></strong></span></span>): <span class="type"><span class="type">array</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">
   Retrieves APCu Shared Memory Allocation information.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apcu-sma-info-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">limited</code></dt>

     <dd>

      <p class="para">
       When set to <strong><code>false</code></strong> (default) <span class="function"><strong>apcu_sma_info()</strong></span> will
       return a detailed information about each segment.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apcu-sma-info-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Array of Shared Memory Allocation data; <strong><code>false</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.apcu-sma-info-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-509">
    <p><strong>示例 #1 A <span class="function"><strong>apcu_sma_info()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">apcu_sma_info</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [num_seg] =&gt; 1
    [seg_size] =&gt; 31457280
    [avail_mem] =&gt; 31448408
    [block_lists] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [size] =&gt; 31448408
                            [offset] =&gt; 8864
                        )

                )

        )

)
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apcu-sma-info-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member">
     <a href="apcu.configuration.html" class="link">APCu configuration directives</a>
    </li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>